package cn.vendsystem.com.service;

import cn.vendcommon.com.entity.InventoryItem;

import java.util.List;
import java.util.Map;

public interface InventoryService {
    InventoryItem addInventory(InventoryItem item);
    int deleteInventory(int id);
    InventoryItem updateInventory(InventoryItem item);
    InventoryItem getInventoryById(int id);
    List<InventoryItem> getAllInventory();

    List<InventoryItem> getInventoryByMachineId(int id);

    void updatePicture(Long id, String filePath);

    String getPictureById(Integer id);

    void deductionInventoryByMachineId(int machineId, Map<String, Integer> intelligentMap);
}
